﻿<cx:BaseFadeDialog
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    x:Class="SSDM.UI.About"
    xmlns:Localizer="clr-namespace:SSDM.Bases"
    xmlns:cx="clr-namespace:SSDM.BaseUI"
    Title="{Localizer:Translate CmdAboutUs}" SizeToContent="WidthAndHeight"
    mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    Height="357" Width="400">
    <Grid>
        <DockPanel>
            <StackPanel DockPanel.Dock="Top" Orientation="Horizontal">
                
            <Image x:Name="logo" Margin="10 5 0 5"
                   Width="128" Height="128"
                   Source="/SeasonStarDatabaseManagement;component/Images/SSDMLogo.png" />
                <StackPanel  VerticalAlignment="Bottom" Margin="10">
                    
                    <TextBlock Margin="10 0 0 0" MinWidth="150" Text="SeasonStar Database Management" VerticalAlignment="Center"/>
                <TextBlock Margin="10 10 0 0" MinWidth="150"  x:Name="txtVersion" VerticalAlignment="Center"/>
                    <Button x:Name="txtShowConnectiongString" Content="Show Connection String" Click="txtShowConnectiongString_Click"/>
                </StackPanel>
            </StackPanel>
            <DataGrid x:Name="profileGrid" IsReadOnly="True" ItemsSource="{Binding}" AutoGenerateColumns="False">
                <DataGrid.Columns>
                    <DataGridTextColumn Header="Name" Binding="{Binding Path=Name}" />
                    <DataGridTextColumn Header="Role" Binding="{Binding Path=RoleName}" />
                    <DataGridTemplateColumn Header="Profile Icon">
                        <DataGridTemplateColumn.CellTemplate>
                            <DataTemplate>
                                <Image Source="{Binding Path=ProfileIcon}" Margin="10 5 10 1" Width="64"/>
                            </DataTemplate>
                        </DataGridTemplateColumn.CellTemplate>
                    </DataGridTemplateColumn>
                    <DataGridTextColumn Header="Profile" Binding="{Binding Path=ProfileDetail}" />
                </DataGrid.Columns>
            </DataGrid>
        </DockPanel>
    </Grid>
</cx:BaseFadeDialog>
